package org.dromara.generator.service;


import lombok.Data;

@Data
public class Column {

    private String column;

    private String property;

    private String type;

    private String comment;

    private ColumnConfig.VueType vueType;

    // 是否必填
    private boolean require = false;

    // 是否加入搜索字段
    private boolean search = false;
    // 是否是需要编辑
    private boolean edit = true;

    private boolean insert = true;


    private int sort;


    public String propertyName() {
        return this.property.substring(0,1).toUpperCase() + this.property.substring(1);
    }
}
